<!-- 主体查询表格 -->

<template>
  <div v-if="!diy" class="full inFlex flexCol" :style="`width: ${mainWidth}`">
    <EasyCard v-if="hasStatistic" class="CommonBody-statistic" noScroll>
      <slot name="statistic" />
    </EasyCard>

    <EasyCard class="CommonBody-search" noScroll>
      <slot name="search" />
    </EasyCard>

    <EasyCard class="CommonBody-table" :class="{ flex1: !hasStatistic }">
      <slot name="table" />
    </EasyCard>

    <slot />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import BodyCard from '@admin/components/CommonBody/BodyCard'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'BodySearchTable',

  /**
   * 属性注册 (抽取以便查阅)
   */
  props: BodyCard.props,

  /**
   * 计算属性 (慎用箭头函数)
   */
  computed: BodyCard.computed,
}
</script>

<style lang="scss">
@import './index.scss';
</style>
